
<div class="row-fluid" style="border-bottom:1px dashed #ebebeb; margin-bottom:10px;">
	<!--<div class="span2">
		<a class="img_pro" href="<?php //echo Yii::app()->createUrl('/articles/view/'.$data->alias);?>">
			<?php
			
			// if($data->image != null){
			?>
			
				<img src="<?php //echo Yii::app()->baseUrl;?>/wwwroot/upload_files/articles/<?php echo $data->image;?>">
			
			<?php
			// }
			?>
			
		</a>
	</div>-->
	<div class="span12">
		<h3>
			<a class="img_pro" href="<?php echo Yii::app()->createUrl('/articles/view/'.$data->alias);?>">
				<span><?php echo CHtml::encode($data->title)?></span>
			</a>
		</h3>
		
		<p>
			<i>
				<?php echo strip_tags($data->content);?>
			</i>
		</p>
		<div style="float:right">
			<?php
			
			echo CHtml::link('Preview',Yii::app()->createUrl('/article/view',array('pid'=>$data->id)), array('class'=>'btn btn-success btn-mini','target'=>'_blank'));
			
			if(currentUser() != false && $data->user_id == currentUser()->id){
				echo CHtml::link('Revert',Yii::app()->createUrl('article/revert',array('id'=>$data->id,'pid'=>$data->p_id)), array('class'=>'btn btn-success btn-mini'));
					
				echo CHtml::link('Delete',"javascript:void(0)", array("submit"=>array('delete', 'id'=>$data->id), 
					'class'=>'btn btn-danger btn-mini',
					'confirm' => 'Are you sure?'));
			?>
				
			<?php
			}
			?>
		</div>


		
		
		
	</div>
	
	
</div>
